package com.ruoyi.inducePest.mapper.inducePest;

import com.ruoyi.inducePest.domain.inducePest.BeginTimeAndEndTimt;
import com.ruoyi.inducePest.domain.inducePest.InducePestImgInfo;
import com.ruoyi.inducePest.domain.inducePest.SelectInducePestImgInfo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author DELL
 */
@Repository
public interface InducePestImgMapper {


    /**
     * * 插入数据库
     *
     * @param inducePestImgInfo 参数
     * @return
     */
    public int insertInducePestImgInfo(InducePestImgInfo inducePestImgInfo);


    /**
     * 查询列表
     *
     * @param inducePestImgInfo
     * @return
     */
    public List<InducePestImgInfo> getInfoByCondition(SelectInducePestImgInfo inducePestImgInfo);

    /**
     * 查询全部
     *
     *
     * @return
     */
    public List<String> selectCaptureId();

    /**
     * 根据设备Id查询拍摄的害虫类别
     *
     *
     * @return
     */
    public List<String> selectImgPestByDeviceId(SelectInducePestImgInfo inducePestImgInfo);



    /**
     * 根据ID查询信息
     * @param id
     * @return
     */
    public InducePestImgInfo selectInfoById(int id);

    /**
     * 删除数据
     *
     */
    public Integer deleteInducePestImgInfo(int id);

    /**
     * 查询某一天之前的最后一条Corner
     *
     * @return 列表
     */
    public List<String> selectLastCornerByDay(BeginTimeAndEndTimt beginTimeAndEndTimt);



    /**
     * 查询某一天之前的最后一条Corner
     *
     * @return 列表
     */
    public List<String> selectLastCornerByDayAndDeviceId(BeginTimeAndEndTimt beginTimeAndEndTimt);

    /**
     * 根据ID更新重新计数的内容
     * @param inducePestImgInfo
     * @return
     */
    public Integer updateReCountInfoById(InducePestImgInfo inducePestImgInfo);

    /**
     * 根据id更改板的状态
     * @param inducePestImgInfo
     * @return
     */
    public Integer updateBoard(InducePestImgInfo inducePestImgInfo);

    /**
     * 根据id更改tag标签，添加tagManual
     * @param inducePestImgInfo
     * @return
     */
    public Integer updateTagManual(InducePestImgInfo inducePestImgInfo);

    /**
     * 根据id修改数据信息
     * @param inducePestImgInfo
     * @return
     */
    public Integer updateInfoById(InducePestImgInfo inducePestImgInfo);

    /**
     * 根据id修改信息对应害虫
     * @param inducePestImgInfo
     * @return
     */
    public Integer updatePestByCondition(SelectInducePestImgInfo inducePestImgInfo);

    /**
     * 删除数据
     *
     */
    public Integer deleteImgInfo(int id);


}
